Compares two objects and returns a value indicating if one is greater than, less than or equal to the other.
'Declaration
Public Function Compare( _
ByVal As , _
ByVal As _
) As Integer
Parameters
- x
- The first object to compare
- y
- The second object to compare
Return Value
0 if the objects are equal. -1 if the first is less than the second. Otherwise 1 to indicate the second is less than the first.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2